<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="java.util.Date" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>用户基本信息</title>
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
	<script src="resources/js/ajaxDataFormat.js"></script> 
	<script src="resources/js/jquery.min.js"></script> 
	<script>
		function getUser() {
			$.ajax({
				  type:"POST",
				  url:"loadTest.do",
				  async:false,
				  dataType:"json",
				  success:function(data,status){
					  $.each(data,function(i,field){
						  //alert(new Date(field.createTime.time).Format("yyyy-MM-dd hh:mm:ss"));
						  //alert(toDate(field.createTime,"yyyy-MM-dd hh:mm:ss"));
						  alert(countDay(field.createTime));
		             });
				  }
			  });
		}
	</script>
</head>
<body>
<input type="button" value="ajax请求" onclick="getUser()"/>
</body>
</html>